﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300">
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Button Content="Click Me" FontSize="48" Margin="20">
            <Button.Effect>
                <DropShadowEffect x:Name="drop"
                                  Direction="0"
                                  Color="Yellow"
                                  BlurRadius="0"
                                  ShadowDepth="1" />
            </Button.Effect>
        </Button>
        <StackPanel Grid.Row="1">
            <Slider Minimum="0" Maximum="10" MinWidth="384" Margin="10"
                Value="{Binding ElementName=drop,Path=ShadowDepth,Mode=TwoWay}" />
            <Slider Minimum="0" Maximum="10" MinWidth="384" Margin="10"
                Value="{Binding ElementName=drop,Path=BlurRadius,Mode=TwoWay}" />
            <Slider Minimum="-180" Maximum="180" MinWidth="384"
                Value="{Binding ElementName=drop,Path=Direction,Mode=TwoWay}" />
        </StackPanel>
    </Grid>
</UserControl>